package com.gitee.huanminabc.dynamicdb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author mac
 * @Date 2024-12-11 10:27:34
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_tenant")
public class TenantEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    
    /**
     * 租户key
     */
    @TableField("tenant_key")
    private String tenantKey;

    
    /**
     * 数据源key
     */
    @TableField("datasource_key")
    private String datasourceKey;

    
    /**
     * 数据源别名key
     */
    @TableField("datasource_as_key")
    private String datasourceAsKey;

    
    /**
     * 是否可用: 1可用 ,2不可用
     */
    @TableField("state")
    private Integer state;

    
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    /**
     * 更新人
     */
    @TableField("update_by")
    private String updateBy;

    
    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;

    
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;


}
